<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/index.js"></script>
<link rel="stylesheet" href="__PUBLIC__/Css/public.css" />
<link rel="stylesheet" href="__PUBLIC__/Css/index.css" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<base target="iframe"/>
<head>
</head>
<body >
	<form action="<?php echo U(GROUP_NAME.'/Category/SortCate');?>" method='post'>
	   <table class='table'>
	     <tr>
	       <th>ID</th>
	       <th>属性名称</th>
	       <th>颜色</th>
	     </tr>
	     
	     <?php if(is_array($attr)): foreach($attr as $key=>$v): ?><tr>
	         <td><?php echo ($v["id"]); ?></td>
	         <td><?php echo ($v["name"]); ?></td>
	         <td><div style="width:50px;height:20px;background:<?php echo ($v["color"]); ?>"></div></td>
	      </tr><?php endforeach; endif; ?>
	     
	     <tr>
	       <td colspan='5' align="center"><input type='submit' value='排序'/></td>
	     </tr>
	   </table>
	</form>
</body>
</html>